import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'home',
    component: () => import(/* webpackChunkName: "home" */ '../pages/Home.vue'),
  },
];

const router = createRouter({
  history: createWebHistory(), // Correctly initializing history
  routes,
});

export default router;
